/*FILE UPDATE INFO**************************************************************
 * Author   : YJZ
 * Update   : 2024-05-19
 * Info     : product name box ui header file
 * Version  : 1.0.0
 ******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LOCK_H__
#define __LOCK_H__

/* Includes ------------------------------------------------------------------*/
#include "stdbool.h"
#include "stdint.h"
#include "lvgl/lvgl.h"
#include "main.h"
#include "stdio.h"
/* Exported macro ------------------------------------------------------------*/

/* Exported types ------------------------------------------------------------*/
typedef void (*lock_cb_t)(void *args);
typedef struct __lock_box__
{
    lv_obj_t *box;
    lv_obj_t *keyboard_box;
    lv_obj_t *txtarea;
    lv_font_t *font_title;
    lv_font_t *font_text;
    union
    {
        void *args;
        bool value;
    };
    lock_cb_t cb;
} lock__box_t;

/* Exported constants --------------------------------------------------------*/

/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
void lock_box_font_init(lv_font_t *font_title, lv_font_t *font_text);
void show_lock_box(bool btn_close_en, bool btn_confirm_en, bool btn_cancel_en, bool btn_back_en, lock_cb_t cb, void *args);

#endif /* __ICONS_H__ */
/************************ (C) COPYRIGHT PURESUN *****END OF FILE***************/
